﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;
using YNTK.System.Entitys.Dto.Common;

namespace YNTK.System.Entitys.Dto.Permission.Organize
{
    /// <summary>
    /// 组织信息维护请求模型
    /// </summary>
    [SuppressSniffer]
    public class OrganizeInfoRequestModel
    {
        /// <summary>
        /// id
        /// </summary>
        [Required(ErrorMessage = "组织唯一标识不能为空")]
        public string id { get; set; }

        /// <summary>
        /// 组织log jpg图片id
        /// </summary>
        public string logId { get; set; }

        /// <summary>
        /// 组织简介
        /// </summary>
        [Required(ErrorMessage = "组织简介不能为空将运用于登录页面")]
        [MaxLength(500,ErrorMessage ="组织简介请控制在500字以内")]
        public string introduction { get; set; }

        /// <summary>
        /// 经营范围
        /// </summary>
        public string scopeBusiness { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string address { get; set; }

        /// <summary>
        /// 组织信息
        /// </summary>
        public string information { get; set; }
    }

    /// <summary>
    /// 添加组织文件请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddOrganizeFileRequestModel: FileRequestModel
    {
        /// <summary>
        /// id
        /// </summary>
        [Required(ErrorMessage = "组织唯一标识不能为空")]
        public string id { get; set; }

        /// <summary>
        /// 组织文件分类id
        /// </summary>
        [Required(ErrorMessage = "组织分类标识不能为空")]
        public string classifyId { get; set; }
    }
}
